package me.nuncio.ggplay.codec;

import com.google.inject.ImplementedBy;
import me.nuncio.ggplay.pdu.Pdu;

import java.nio.ByteBuffer;

@ImplementedBy(DefaultTranscoder.class)
public interface Transcoder {
    public void encode(Pdu pdu, ByteBuffer buf);

    public Pdu decode(ByteBuffer buf);
}